# vim: set ft=python

import glob

SRC_DIR = 'src/'
BUILD_DIR = 'build/'
MEDIA_DIR = 'media/'
DIST_DIR = 'bin/'

output = SConscript(SRC_DIR + 'SConscript', variant_dir = BUILD_DIR)
Command(DIST_DIR + output, BUILD_DIR + output, Copy('$TARGET', '$SOURCE'))

media_files = glob.glob(MEDIA_DIR + '*.*');
copy_ops = [(file.replace(MEDIA_DIR, DIST_DIR), file) for file in media_files]
for op in copy_ops:
	Command(op[0], op[1], Copy('$TARGET', '$SOURCE'))

